package com.cskaoyan.bean.chaosbean.cart.vo;

import com.cskaoyan.bean.po.MarketCart;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 楚夏三分
 * @datetime 2023/1/2 17:31
 * @description: TODO:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CartIndexVO {
    /**
     * cartTotal : {"goodsCount":4,"checkedGoodsCount":4,"goodsAmount":2548,"checkedGoodsAmount":2548}
     * cartList : [{"id":520,"userId":1,"goodsId":1181126,"goodsSn":"776868","goodsName":"嘎嘎嘎","productId":380,"price":1000,"number":2,"specifications":["规格1的值","规格2的值","规格3的值"],"checked":true,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/qye3kjbz3q4rc04rjai9.png","addTime":"2023-01-02 14:26:20","updateTime":"2023-01-02 14:26:21","deleted":false},{"id":521,"userId":1,"goodsId":1064007,"goodsSn":"1064007","goodsName":"3D纯棉护颈双人记忆枕","productId":77,"price":249,"number":1,"specifications":["标准"],"checked":true,"picUrl":"http://yanxuan.nosdn.127.net/d7bd87f8cc1965b25be33a8aad53812b.png","addTime":"2023-01-02 14:26:26","updateTime":"2023-01-02 14:26:26","deleted":false},{"id":522,"userId":1,"goodsId":1021004,"goodsSn":"1021004","goodsName":"澳洲羊羔毛AB面盖毯","productId":29,"price":299,"number":1,"specifications":["标准"],"checked":true,"picUrl":"http://yanxuan.nosdn.127.net/654b02045fde802b51d5bbf09a8b75f2.png","addTime":"2023-01-02 14:26:44","updateTime":"2023-01-02 14:26:44","deleted":false}]
     */
    private CartTotalBean cartTotal;
    private List<MarketCart> cartList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CartTotalBean {
        /**
         * goodsCount : 4
         * checkedGoodsCount : 4
         * goodsAmount : 2548
         * checkedGoodsAmount : 2548
         */
        private int goodsCount;
        private int checkedGoodsCount;
        private BigDecimal goodsAmount;
        private BigDecimal checkedGoodsAmount;
    }
}
